// Utilities
import { defineStore } from 'pinia'

export const appStore = defineStore('app', {
  state: () => ({
    category: {},
    homeTitle: [
      "About us",
      "All Products",
    ],
    currentGoodsCategory: 1
  }),
  getters: {
    getCategory: (state) => state.category,
    gethomeTitle: (state) => state.homeTitle,
    getCurrentGoodsCategory: (state) => state.currentGoodsCategory,

  },
  actions: {
    setCategory(category){
      this.category = category
    },
    setcurrentCategory(category_id){
      this.currentGoodsCategory = category_id
    }
  },
  persist: true, // 设置持久化
});


// // main
// Apparel & Outerwear
// Baby, Toddler, & Child Items
// Bags & Luggage
// Caps & Hats
// Drinkware
// Pet Supplies
// School, Office, & Craft Supplies
// Sports, Fitness, & Outdoors
// Toys, Games, & Novelties
//
//
// // first
// Writing Instruments
// Home & Garden
// Key Chains
// Kitchen & Dining
// Party Supplies
//
// // second
// Health, Beauty & Wellness
// Holiday & Religious Items
// Jewelry and Accessories
// Lanyards, Badges, & Badge Holders
// Signs, Banners, Flags, & Displays
//
// // third
// Tools & Hardware
// Equipment and Business Services
// Food, Beverage, & Tobacco
// Magnets & Buttons, Stickers & Decals
// Electronics & Tech Products
//
//
// // other
// Automotive Accessories
// Awards & Trophies
// Publications
// Storage & Organization
// Other

